using System;
using System.Runtime.InteropServices;

namespace asWins.Forms
{
	/// <summary>
	/// Use internal native window api.
	/// </summary>
	public class Win32API
	{
		/// <summary>
		/// Get Key state of windows.
		/// </summary>
		/// <param name="keyCode"></param>
		/// <returns></returns>
		[DllImport("user32.dll", CharSet=CharSet.Auto, ExactSpelling=true, CallingConvention=CallingConvention.Winapi)]
		public static extern short GetKeyState(int keyCode);
	}
}
